package com.movisol.messenger.views.controls;


import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;

import com.movisol.messenger.R;

public class LoadingTab extends LinearLayout{
	
	public LoadingTab(Context context) {
		super(context);

		String infService = Context.LAYOUT_INFLATER_SERVICE;
		LayoutInflater li = (LayoutInflater)context.getSystemService(infService);
		li.inflate(R.layout.loadingtab, this, true);
			
		initializeControls();
		
	}

	private void initializeControls() {
		
	}
	
	public void setSignedIn()
	{
		TextView tv = (TextView) findViewById(R.id.tvLoadingLogin);
		tv.setText("Signed In!");
		
		ProgressBar pb = (ProgressBar) findViewById(R.id.pbLogin);
		
		pb.setVisibility(View.INVISIBLE);
	}
	
	

}
